package cn.java76.springboot.demo1.entity;
import java.util.Date;

public class OVisit {

  private long id;
  private String openid;
  private long videoid;
  private long watchtime;
  private Date createtime;
  private String videoname;


  public OVisit() {
  }

  public OVisit(String openid, long videoid, long watchtime, Date createtime) {
    this.openid = openid;
    this.videoid = videoid;
    this.watchtime = watchtime;
    this.createtime = createtime;
  }

  public OVisit(long id, String openid, long videoid, long watchtime, Date createtime) {
    this.id = id;
    this.openid = openid;
    this.videoid = videoid;
    this.watchtime = watchtime;
    this.createtime = createtime;
  }

  public String getVideoname() {
    return videoname;
  }

  public void setVideoname(String videoname) {
    this.videoname = videoname;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public String getOpenid() {
    return openid;
  }

  public void setOpenid(String openid) {
    this.openid = openid;
  }

  public long getVideoid() {
    return videoid;
  }

  public void setVideoid(long videoid) {
    this.videoid = videoid;
  }

  public long getWatchtime() {
    return watchtime;
  }

  public void setWatchtime(long watchtime) {
    this.watchtime = watchtime;
  }

  public Date getCreatetime() {
    return createtime;
  }

  public void setCreatetime(Date createtime) {
    this.createtime = createtime;
  }

  @Override
  public String toString() {
    return "OVisit{" +
            "id=" + id +
            ", openid='" + openid + '\'' +
            ", videoid=" + videoid +
            ", watchtime=" + watchtime +
            ", createtime=" + createtime +
            ", videoname='" + videoname + '\'' +
            '}';
  }
}
